import { payrollDetail } from '../../api/pay'
Page({
    data: {
        data: {}
    },
    onLoad: function (options) {
        this.getData(options.id)
    },
    getData(id) {
        payrollDetail({
            id: id,
        }).then(res=>{
            this.setData({
                data: res
            })
        })
    }
});